<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=ADMIN_RES_PATH ?>/css/default/admin.css" rel="stylesheet" type="text/css">
<script src="<?=ADMIN_RES_PATH ?>/js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="<?=ADMIN_RES_PATH ?>/js/public.js" type="text/javascript"></script>
<style type="text/css">
    td img{height:50px; width:250px;}
</style>
</head>
<body>
    <div id="main">
    	<div class="title">首页管理</div>

    	<div class="content">
        <span>
    	<h3 style="margin-top: 20px; margin-left: 10px;">幻灯片配置</h3>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:2px;" class="mytab">
      <tr style="background:#BBDDE5" id="h">
        <td width="5%" align="center" style="color:#aaa">ID</td>
        <td width="25%" align="center">标题</td>
        <td width="5%" align="center">顺序</td>
    	<td width="25%" align="center">图片</td>
    	<td width="25%" align="center">链接</td>
        <td width="15%" align="center">操作</td>
      </tr>
      <?php foreach ($this->slides as $slide) {?>
      <tr class="newtr">
         <td align="center" style="color:#aaa"><?=$slide['id'] ?></td>
        <td align="left"><?=$slide['title'] ?></td>
        <td align="center"><?=$slide['order'] ?></td>
    	<td align="left"><img src="<?=$this->imgpath.$slide['img'] ?>"/></td>
    	<td align="left"><?=$slide['link'] ?></td>
        <td align="center">
    		<a href="<?=ADMIN_PATH ?>/Slide/editslide/id/<?=$slide['id'] ?>">修改</a>&nbsp;&nbsp;
    		<a href="<?=ADMIN_PATH ?>/Slide/delslide/id/<?=$slide['id'] ?>" onClick="return confirm('您确定要删除该文章吗？')">删除</a>
    	</td>
      </tr>
     <?php } ?>
       <tr >
        <td colspan="6" align="center"><a href="<?=ADMIN_PATH ?>/Slide/addslide">新增幻灯片</a>&nbsp;&nbsp;</td>
      </tr>
    </table>

    </span>
    	</div>
    </div>
</body>
</html>
